From: Kenichi Handa Date: Tue, 18 Aug 2009 00:21:36 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~11058 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=f9d449fa975c8f3dc028f55e92b213a86f7ac389;p=emacs.git *** empty log message *** --- diff --git a/src/fontset.c b/src/fontset.c index b030887673c..2bac86c19c3 100644 --- a/src/fontset.c +++ b/src/fontset.c @@ -2083,6 +2083,7 @@ format is the same as above. */) DEFUN ("fontset-font", Ffontset_font, Sfontset_font, 2, 3, 0, doc: /* Return a font name pattern for character CH in fontset NAME. If NAME is t, find a pattern in the default fontset. +If NAME is nil, find a pattern in the fontset of the selected frame. The value has the form (FAMILY . REGISTRY), where FAMILY is a font family name and REGISTRY is a font registry name. This is actually @@ -2115,6 +2116,8 @@ patterns. */) Lisp_Object family, registry; val = AREF (elt, j); + if (NILP (val)) + break; repertory = AREF (val, 1); if (INTEGERP (repertory)) {